package com.microservice.postservice.client;

import com.microservice.commonutils.R;

import com.microservice.commonutils.userVo.UserInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-ucenter" ,fallback = UserInfoFeignClient.class)
public interface UserInfoClient {

    //定义调用方法的路径educenter/member
    @GetMapping("/educenter/member/getALL")
    public R getAll();
    @GetMapping("/educenter/member/getUserInfoById/{id}")
    public UserInfoVo getUserInfoById(@PathVariable(value = "id") String id);

}
